﻿using System.Collections.Generic;

namespace NTTDATA.BEENChina.ResultCertification.Logic
{
    public class ChildImageStack<T>:Queue<T>
    {

        private int limit = 100;

        public ChildImageStack(int limit): base(limit)
        {
            this.limit = limit;
        }

        public new void Enqueue(T item)
        {

            if (this.Count >= this.limit)
            {

                this.Dequeue();

            }

            base.Enqueue(item);

        }

        
        
    }
}
